<!DOCTYPE>
<html>
<style>
 #element-container-vw-vh {
   background: green;
   height: 50vh;
   width: 50vw;
 }
</style>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
if (window.eventSender)
    eventSender.setPageScaleFactor(1.5, 0, 0);

function test()
{
    var div = document.getElementById("element-container-vw-vh");
    div.innerText = div.offsetWidth == 400 && div.offsetHeight == 300 ? "PASS" : "FAIL";
}
</script>

<body onload="test()">
<div id="element-container-vw-vh"></div>
</body>
</html>
